package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IJDGoodInfoActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AddShopCarRequest;
import com.wgts.wgts.netmodle.req.CollectionProductRequest;
import com.wgts.wgts.netmodle.req.MoreMoreGoodsInfoReq;
import com.wgts.wgts.netmodle.req.ProductInfoRequest;
import com.wgts.wgts.netmodle.req.UpDownProductRequest;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.MoreMoreGoodsInfoEntity;
import com.wgts.wgts.netmodle.resp.ProductInfoEntity;

public class JDGoodInfoActivityModel implements IJDGoodInfoActivityModel {

    private NetService netService;


    public JDGoodInfoActivityModel(NetService netService) {
        this.netService = netService;
    }



    @Override
    public void productInfo(ProductInfoRequest request, HttpResultSubscriber<ProductInfoEntity> subscriber) {
        netService.productInfo(request, subscriber);
    }

    @Override
    public void collectionProduct(CollectionProductRequest request, HttpResultSubscriber<Integer> subscriber) {
        netService.collectionProduct(request, subscriber);
    }

    @Override
    public void addShopCar(AddShopCarRequest request, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.addShopCar(request, subscriber);
    }

    @Override
    public void moreMore(MoreMoreGoodsInfoReq req, HttpResultSubscriber<MoreMoreGoodsInfoEntity> subscriber) {
        netService.moreMoreAction(req, subscriber);
    }

    @Override
    public void updownProduct(UpDownProductRequest request, HttpResultSubscriber<Integer> subscriber) {
        netService.updownProduct(request, subscriber);
    }

    @Override
    public void activityProductInfo(Integer productId, Integer activityId, String beginTime, String endTime, HttpResultSubscriber<ProductInfoEntity> subscriber) {
        netService.activityProductInfo(productId, activityId, beginTime, endTime, subscriber);
    }


}
